home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / wndwc20.zip / EX10.C < prev    next >
Text File  |  1989-03-06  |  731b  |  22 lines

  1. /*     EXAMPLE 10:  Screen design
  2.      ----------------------------------------------------------------------*/
  3.      #include <conio.h>
  4.      #include <dos.h>
  5.      #include "wndwc20.h"
  6.  
  7.      void main()
  8.      {
  9.          qinit();
  10.          initwindow( LIGHTGRAY_BG, 1, 0 );
  11.          makewindow( 5, 19, 17, 41, GREEN_BG, WHITE+GREEN_BG, VDOUBLE_BORDER,
  12.                      WINDOW1 );
  13.          tws.wsline = SINGLE_BORDER;    /* Don't want VDOUBLE_BORDER */
  14.          wlineh ( 4, 1, tws.wcols );    /* Use wcols for full window width */
  15.          wlineh ( 12, 1, tws.wcols );
  16.          wbrdrh ( 8 );
  17.          wbrdrv ( 20 );
  18.          wbrdrpart( 8, 20, BRDR_CL );      /* For the Cross Line */
  19.          getch();
  20.      }
  21.  
  22.